home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap05 / CtlDemo1 / CtlDemo1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  1.0 KB  |  42 lines

  1. //***********************************************************************
  2. //
  3. //  CtlDemo1.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     CEdit m_ctlEdit;
  17.  
  18.     BOOL IsTextSelected ();
  19.  
  20. public:
  21.     CMainWindow ();
  22.  
  23. protected:
  24.     afx_msg int OnCreate (LPCREATESTRUCT);
  25.     afx_msg void OnSize (UINT, int, int);
  26.     afx_msg void OnSetFocus (CWnd*);
  27.     afx_msg void OnFileNew ();
  28.     afx_msg void OnFileExit ();
  29.     afx_msg void OnEditUndo ();
  30.     afx_msg void OnEditCut ();
  31.     afx_msg void OnEditCopy ();
  32.     afx_msg void OnEditPaste ();
  33.     afx_msg void OnEditDelete ();
  34.     afx_msg void OnUpdateEditUndoUI (CCmdUI*);
  35.     afx_msg void OnUpdateEditCutUI (CCmdUI*);
  36.     afx_msg void OnUpdateEditCopyUI (CCmdUI*);
  37.     afx_msg void OnUpdateEditPasteUI (CCmdUI*);
  38.     afx_msg void OnUpdateEditDeleteUI (CCmdUI*);
  39.  
  40.     DECLARE_MESSAGE_MAP ()
  41. };
  42.